package me.project.ch3.Singleton;

/**
 * @author mbryce
 * @date 2018/6/9
 */
public class Singleton {
    private static Singleton singleton = new Singleton();
    private Singleton(){
        System.out.println("生成了一个实例");
    }
    public static Singleton getInstance(){
        return singleton;
    }
}
